<?php
######################################################################
# [Indy]News hacking
#-------------------------
# Version: 1.1
#
# By : JoyDivision (Kolja)
# (http://www.bergamoblog.it)
# (gava@bergamoblog.it)
#
# Tech support on www.bergamoblog.it/forum.php
######################################################################
# This hacking is free software. You can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License.
######################################################################
######################################################################
# PHP-NUKE: Web Portal System
# ===========================
#
# Copyright (c) 2001 by Francisco Burzi (fbc@mandrakesoft.com)
# http://phpnuke.org
#
# This modules is the main administration part
#
# This program is free software. You can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License.
######################################################################

if (!eregi("admin.php", $_SERVER['PHP_SELF'])) { die ("Access Denied"); }

switch($op) {
  case "MediaAdmin":
          include ("admin/modules/adminmedia.php");
          MediaAdmin();
          break;
  case "MediaTypeEdit":
          include ("admin/modules/adminmedia.php");
          MediaTypeEdit($ext);
          break;
  case "MediaTypeGoSave":
          include ("admin/modules/adminmedia.php");
          MediaTypeGoSave($ext, $classid, $enableEmbed, $enableView, $mimetype, $displaytag, $thumbnail);
          break;
  case "MediaTypeGoAdd":
          include ("admin/modules/adminmedia.php");
          MediaTypeGoAdd($ext, $classid, $enableEmbed, $enableView, $mimetype, $displaytag, $thumbnail);
          break;
  case "MediaTypeGoDel":
          include ("admin/modules/adminmedia.php");
          MediaTypeGoDel($ext, $ok);
          break;
  case "MediaConfigEdit":
          include ("modules/IndyNews/index.php");
          include ("admin/modules/adminmedia.php");
          MediaConfigEdit();
          break;
  case "MediaConfigGoSave":
          include ("admin/modules/adminmedia.php");
          MediaConfigGoSave($admUpSize, $usrUpSize, $anmUpSize, $UnpFType, $enablThumb, $numNewsImg, $posNewsImg, $imgIndDefW, $imgIndDefH, $imgArtDefW, $imgArtDefH, $tmplArt);
          break;
  case "MediaNewsAdmin":
          include ("modules/IndyNews/index.php");
          include ("admin/modules/adminmedia.php");
          MediaNewsAdmin($MPos, $MSort);
          break;
  case "FixHasMediaBug":
          include ("modules/IndyNews/index.php");
          include ("admin/modules/adminmedia.php");
          sfFixHasMediaBug();
          break;
}
?>
